﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XingLucifer.IBase.Enums;

namespace UIWindows.Services.Context
{
    public class DataContext
    {
        /// <summary>
        /// 任务类型
        /// </summary>
        public TaskTypes TaskType { get; set; }
        /// <summary>
        /// 设备类型
        /// </summary>
        public DeviceTypes DeviceType { get; set; }
        /// <summary>
        /// PLC启动命令变量名
        /// </summary>
        public string Address_Signal { get; set; }
        /// <summary>
        /// 结构体标签
        /// </summary>
        public string Address_Struct { get; set; }
        /// <summary>
        /// 结构体长度
        /// </summary>
        public int Struct_Length { get; set; }
        /// <summary>
        /// 设备索引
        /// </summary>
        public int DeviceIndex { get; set; }
        public string AddressingMethod { get; set; }
        /// <summary>
        /// 服务名称---->注意：填写PLC交互命令的结构体变量名
        /// </summary>
        public string ServiceName { get; set; }
    }
}
